package com.dormitory.service;

import com.dormitory.po.Building;
import com.dormitory.po.PageInfo;

import java.util.List;

public interface BuildingService {
//    //获取总条数
//    Integer totalCount(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding,
//                       @Param("a_name") String a_name);
//
//    //获取楼的列表
//    List<Building> getBuildingList(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding,
//                                   @Param("a_name") String a_name, @Param("currentPage") Integer currentPage,
//                                   @Param("pageSize") Integer pageSize);

    //分页查询
    PageInfo<Building> findPageInfo(String d_dormbuilding, String a_name, Integer pageIndex, Integer pageSize);

    int addBuilding(Building building);

    int deleteBuilding(Integer d_id);

    int updateBuilding(Building building);

    Building findBuildingById(Integer d_id);

    List<Building> getAll();
}
